import {
  RESERVATION_ORDER_STATE_TEXT,
  RESERVATION_PAY_TYPE_TEXT,
  RESERVATION_PAY_TYPE,
  RESERVATION_ORDER_STATE,
} from "../../../../../../common/reservation/constant/index.js";
export * from "@src/common/reservation/constant/index.js";
//根据状态码
//订单状态码
export const RESERVATION_STATE = RESERVATION_ORDER_STATE;

export const STATE_TEXT = RESERVATION_ORDER_STATE_TEXT;

//支付方式
export const RESERVATION_PAY_STATE = {
  PAY_INSHOP: RESERVATION_PAY_TYPE.SHOP_PAY,
  PAY_ONLINE: RESERVATION_PAY_TYPE.ON_LINE,
};

export const RESERVATION_PAY_STATE_TEXT = {
  [RESERVATION_PAY_STATE.PAY_INSHOP]:
    RESERVATION_PAY_TYPE_TEXT[RESERVATION_PAY_STATE.PAY_INSHOP],
  [RESERVATION_PAY_STATE.PAY_ONLINE]:
    RESERVATION_PAY_TYPE_TEXT[RESERVATION_PAY_STATE.PAY_ONLINE],
};
